-- GENERATED SPELL FOR [Vanndar Stormpike] --


function spell0_11948(pUnit, Event) --@Avatar,Self--
pUnit:FullCastSpellOnTarget(19135,pUnit)
pUnit:RegisterEvent('Sorts_11948', 15257, 1)
end

function spell1_11948(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15588,pUnit)
pUnit:RegisterEvent('Sorts_11948', 10342, 1)
end

function Sorts_11948(pUnit, Event)
local choix_sorts_11948 = math.random(0, 1)
if choix_sorts_11948 == 0 then
pUnit:RegisterEvent('spell0_11948', 1, 1)
end
if choix_sorts_11948 == 1 then
pUnit:RegisterEvent('spell1_11948', 1, 1)
end
end

function mob11948_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11948', math.random(1500, 3000), 1)
end

function mob11948_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11948_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11948_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11948, 1, 'mob11948_Action')
RegisterUnitEvent(11948, 2, 'mob11948_Leave')
RegisterUnitEvent(11948, 3, 'mob11948_Kill')
RegisterUnitEvent(11948, 4, 'mob11948_Die')
